package com.jaydenxiao.common.base;

import android.databinding.ViewDataBinding;
import android.support.v7.widget.RecyclerView;

import com.jaydenxiao.common.drag_listener.ItemTouchHelperViewHolder;

/**
 * Created by hasee on 2017/10/14.
 */

public class BaseBindingVH<T extends ViewDataBinding> extends RecyclerView.ViewHolder {

    protected final T mBinding;
    private int index;
    public BaseBindingVH(T mBinding) {
        super(mBinding.getRoot());
        this.mBinding=mBinding;
    }


    public T getmBinding() {
        return mBinding;
    }


    private ItemTouchHelperViewHolder itemTouchHelperViewHolder;


    public void setItemTouchHelperViewHolder(ItemTouchHelperViewHolder itemTouchHelperViewHolder) {
        this.itemTouchHelperViewHolder = itemTouchHelperViewHolder;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }


}
